package hu.mapro.flang.gwt.client.ui.menu;

import hu.mapro.gwtui.client.app.Menu;
import hu.mapro.gwtui.client.app.MenuGroup;
import hu.mapro.gwtui.client.impl.DelegatedMenuGroup;

import com.google.inject.Inject;
import com.google.inject.Singleton;

@Singleton
public class PracticeMenuGroup extends DelegatedMenuGroup {

	public static class Factory {
		
		MenuGroup menuGroup;
		
		@Inject
		public Factory(Menu menu) {
			menuGroup = menu.addMenuGroup();
			menuGroup.setText("Practice");
		}
		
	}
	
	@Inject
	public PracticeMenuGroup(Factory factory) {
		super(factory.menuGroup);
	}
	
}
